'use strict';

module.exports = app => {
  const { router, controller } = app;

  // 查询服务器
  // router.get('/elasticsearch', controller.elasticsearch.index);
  router.resources('elasticsearch', '/elasticsearch', controller.elasticsearch.crud);
  router.get('/elasticsearch/count', controller.elasticsearch.index.count);
  router.post('/elasticsearch/_analyze', controller.elasticsearch.index.analyze);
};
